﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using DAL;
using Entity.Table;

namespace BLL.Db
{
    public class CheckAccountDetailTempManager
    {
         /// <summary>
        /// 添加一条明细对帐文件信息
        /// </summary>
        /// <param name="detail">实体对象</param>
        /// <returns></returns>
        public static bool Insert(TB_CheckAccountDetailTemp detail)
        {
           return CheckAccountDetailTempDatabase.Insert(detail);
        }

         /// <summary>
       /// 获取当天明细对帐文件的总额信息。
       /// </summary>
       /// <param name="businessDate">银行编码</param>
       /// <param name="startTime">业务日期</param>
       /// <param name="endTime">文件名</param>
       /// <returns>总金额</returns>
        public static decimal GetDetailAccountTotalMoney(string bankCode, string businessDate)
        {
            return CheckAccountDetailTempDatabase.GetDetailAccountTotalMoney(bankCode, businessDate);
        }

        /// <summary>
        /// 清空明细对帐文件信息
        /// </summary>
        /// <returns></returns>
        public static bool Delete(string bankCode)
        {
            return CheckAccountDetailTempDatabase.Delete(bankCode);
        }
    }
}
